﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/AdminMasterPage.master" AutoEventWireup="true" CodeFile="Fin006.aspx.cs" Inherits="Admin_Fin_Fin006" %>


<asp:Content ID="Content1" ContentPlaceHolderID="phScript" runat="Server">
    <script type="text/javascript" src="/Scripts/Controls/DatePicker/WdatePicker.js""></script>
    <style type="text/css">
        .subTable
        {
            border:none !important;
            
            }
        .subTable td
        {
            border:none !important;
            padding-right:8px;
            }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%; min-width: 700px">
        <div style="padding-right: 12px; display: block;">
            <table width="100%" cellspacing="2" cellpadding="2" class="AddTable" align="left">
               
                <tr>
                    <td width="80px">
                        存储状态:
                    </td>
                    <td width="480px">
                        <yncWebDDL:DrpCodeTable ID="drpStatus" runat="server" Category="CTE003" ShowSelectedItem="true">
                        </yncWebDDL:DrpCodeTable>
                    </td>
                    <td>
                    </td>
                    <td width="90px">
                    </td>
                    <td>
                    </td>
                </tr>
                <asp:Panel ID="panThirdUnit" runat="server" Visible="false">
                <tr>
                    <td>
                        存储机构:
                    </td>
                    <td>
                        <yncWebDDL:DrpThirdUnit ID="drpThirdUnit" runat="server" ShowSelectedItem="true">
                        </yncWebDDL:DrpThirdUnit>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                </asp:Panel>
                <tr>
                    <td>
                        部门:
                    </td>
                    <td>
                        <yncWebDDL:DrpCodeTable ID="drpDept" runat="server" Category="CTE001" ShowSelectedItem="true">
                        </yncWebDDL:DrpCodeTable>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                 <tr>
                    <td>
                        凭证号:
                    </td>
                    <td>
                        <yncWeb:yncTextBox ID="txtDocNo" Width="180" runat="server"></yncWeb:yncTextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                
                 <tr>
                    <td>
                        日期:
                    </td>
                    <td>
                       <span style="color: #FF6600;">
                    <input class="Wdate textBox" style="width: 180px;" runat="server" readonly="readonly"
                        type="text" id="txtStartDate" clientidmode="Static" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'txtEndate\')||$dp.$DV(\'9998-12-31\')}'})" />&nbsp;&nbsp;至&nbsp;&nbsp;
                    <input class="Wdate textBox" runat="server" readonly="readonly" type="text" id="txtEndate"
                        clientidmode="Static" style="width: 180px;" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'txtStartDate\');}',maxDate:'9998-12-31'})" />
                </span>
                    <span style="margin-left:8px">
                    <asp:Button id="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></span>
                    </td>
                    <td align="left" colspan="2">
                      <asp:Label ID="lbMsg" runat="server"></asp:Label>
                    </td>
                    <td width="56px" align="center">
                        <asp:Button ID="btnConfirm" runat="server" Text="确认" OnClick="btnConfirm_Click" OnClientClick="return confirm('您确定要执行些操作吗？');" />
                    </td>
                </tr>
            </table>
        </div>

        <yncWeb:PagnationGrid PageSize="30" ID="pageGrid" runat="server" OnOnPageIndexChange="PageChanged">
            <HeaderTemplate>
                <table width="100%" cellspacing="0" cellpadding="0" class="pagnationtable" align="left">
                    <thead>
                        <tr>
                            <th width="30px">序号
                            </th>
                            <th width="40px">SAP?</th>
                            <th width="100px">凭证盒条码
                            </th>
                            <th width="90px">外仓条形码
                            </th>
                            <th width="110px">凭证索引号1(SAP)
                            </th>
                            <th width="110px">凭证索引号2(SAP)
                            </th>
                            <th width="110px">凭证索引号3(SAP)
                            </th>
                            <th width="110px">凭证索引号4(SAP)
                            </th>
                            <th width="100px">公司代码(SAP)
                            </th>
                            <th width="100px">事业部
                            </th>
                            <th width="100px">职能部门
                            </th>
                            <th width="110px">文档日期
                            </th>
                            <th width="100px">存储状态
                            </th>
                            <th width="100px">存储地点
                            </th>
                            <th>公司名称
                            </th>
                            <th width="40px">确认?
                            </th>
                            <th width="80px" class="center">操作
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td rowspan="6">
                        <asp:CheckBox ID="chkSel" runat="server" />
                        <input type="hidden" id="receiptID" runat="server" value="<%#Eval(FinReceiptMetadata.ColumnNames.ReceiptID) %>" />
                        <%# Container.ItemIndex +1 %>
                    </td>
                    <td rowspan="6">
                        <%# GetYesOrNo(Eval(FinReceiptMetadata.ColumnNames.IsSAP))%>
                    </td>
                    <td>
                        <%#Eval(VReceiptExtInfoMetadata.ColumnNames.BoxNo)%>
                    </td>
                    <td>
                        <%#Eval(VReceiptExtInfoMetadata.ColumnNames.SupplierBoxNo)%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.DocumentsNo)%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.Reference)%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.ReferenceKey)%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.ReferenceTransact)%>
                    </td>
                    <td>
                        <%# Eval(BFCompanyDicMetadata.ColumnNames.CompanyCode)%>
                    </td>
                    <td>
                        <%#Eval(FinReceiptMetadata.ColumnNames.Division+"Str")%>
                    </td>
                    <td>
                        <%#Eval(FinReceiptMetadata.ColumnNames.FunctionDept+"Str")%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.VoucherDate)%>
                    </td>
                    <td><%# Eval(FinReceiptMetadata.ColumnNames.StorageStatus+"Str")%>
                    </td>
                    <td>
                        <%# Eval(FinReceiptMetadata.ColumnNames.StorageLocation+"Str")%>
                    </td>
                    <td>
                        <%# Eval(BFCompanyDicMetadata.ColumnNames.CompanyName)%></td>
                    <td>
                        <%# GetYesOrNo(Eval(FinReceiptMetadata.ColumnNames.IsConfirmed))%>
                    </td>
                    <td class="center action">                        
                        <%# GetConfirmLink("确认","U","Fin006a.aspx",Container.DataItem,"您确定要执行此操作吗？",FinReceiptMetadata.ColumnNames.ReceiptID) %>
                    </td>
                </tr>
                <tr class="odd">
                    <td><b>录入人</b></td>
                    <td colspan="3">
                        <%#Eval(FinReceiptMetadata.ColumnNames.CreatedBy)%></td>
                    <td><b>冲销凭证号(SAP)</b></td>
                    <td colspan="3">
                        <%# Eval(FinReceiptMetadata.ColumnNames.RevesedBy)%></td>
                    <td><b>凭证类型(SAP)</b></td>
                    <td colspan="6">
                        <%# Eval(FinReceiptMetadata.ColumnNames.DocumentsType+"Str")%></td>
                </tr>
                <tr class="odd">
                    <td><b>转移记录</b></td>
                    <td colspan="3">
                        <%#Eval(FinReceiptMetadata.ColumnNames.TransferRecord)%></td>
                    <td><b>用户名(SAP)</b></td>
                    <td colspan="3">
                        <%#Eval(FinReceiptMetadata.ColumnNames.UserName)%></td>
                    <td><b>业务类型(SAP)</b></td>
                    <td colspan="6">
                        <%# Eval(FinReceiptMetadata.ColumnNames.ReferenceTransact)%></td>
                </tr>
                <tr class="odd">
                    <td><b>转移日期</b></td>
                    <td colspan="3"><%#Eval(FinReceiptMetadata.ColumnNames.LastTransferDate).FormatDate(ConstantValue.DateFormat)%></td>
                    <td><b>凭证日期(SAP)</b></td>
                    <td colspan="3">
                        <%# Eval(FinReceiptMetadata.ColumnNames.DocumentDate).FormatDate(ConstantValue.DateFormat)%></td>
                    <td><b>凭证系统(SAP)</b></td>
                    <td colspan="6">
                        <%# Eval(FinReceiptMetadata.ColumnNames.DocumentSystem)%></td>
                </tr>
                <tr class="odd">
                    <td><b>初次入库日期</b></td>
                    <td colspan="3">
                        <%#Eval(FinReceiptMetadata.ColumnNames.FirstStorageDate).FormatDate(ConstantValue.DateFormat)%></td>
                    <td><b>凭证入帐日期(SAP)</b></td>
                    <td colspan="3">
                        <%# Eval(FinReceiptMetadata.ColumnNames.PostingDate).FormatDate(ConstantValue.DateFormat)%></td>
                    <td><b>关联系统(SAP)</b></td>
                    <td colspan="6">
                        <%# Eval(FinReceiptMetadata.ColumnNames.LogicalSystem)%></td>
                </tr>
                <tr class="odd">
                    <td><b>文档描述</b></td>
                    <td colspan="3">
                        <%#Eval(FinReceiptMetadata.ColumnNames.VoucherDescription)%></td>
                    <td><b>备注</b></td>
                    <td colspan="10">
                        <%#Eval(FinReceiptMetadata.ColumnNames.Comments)%></td>

                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody> </table>
            </FooterTemplate>
        </yncWeb:PagnationGrid>
    </div>
</asp:Content>

